package com.lanhu.designpattern.factory.abstractfactory;

/**
 * author:zhangzg
 * date:2020/10/29 21:10
 * 继承抽象工厂，也可以自定义扩展
 */
public class PhoneFactory extends Factory{
    @Override
    public Product getPhone() {
        return new AppleXPhone();
    }

    @Override
    public Product getComputer() {
       return null;
    }

    public Product getPhoneS(){
        return new AppleSPhone();
    }
}
